//
//  AppDelegate.h
//  HeadYang
//
//  Created by sunmingming on 15/6/30.
//  Copyright (c) 2015年 xiaoluoli. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SpUserItem.h"
#import "LKDBHelper.h"
#import "DDViewController.h"
#import <CoreLocation/CoreLocation.h>
#import "KGModal.h"

@protocol PayDelegate <NSObject>

- (void)showAlertOfSuccess;

@end

typedef enum {
    hairJianFa  = 100,
    hairTangFa  = 200,
    hairRanFa   = 300,
    hairHuli    = 400,
    hairZonghe  = 900,
}hairType;

@interface AppDelegate : UIResponder <UIApplicationDelegate>

//**********服务***************************
@property(nonatomic,strong) NSDate *selectDate;

@property(nonatomic,strong) NSString *globalUrl;

@property(nonatomic,strong) NSDictionary *barberDetailDic;
@property(nonatomic,strong) NSDictionary *barberStoreDic;
@property(nonatomic,strong) NSDictionary *barberServiceDic;
@property(nonatomic,strong) NSDictionary *couponDic;
@property(nonatomic,strong) NSDictionary *goodsDic;
@property(nonatomic,strong) NSDictionary *orderDetailDic;
//染烫护理三者
@property(nonatomic,assign) hairType myType;
@property(nonatomic,strong) NSString *myGender;//性别
@property(nonatomic,strong) NSString *myHairType;//发型
@property(nonatomic,strong) NSString *rfType;
@property(nonatomic,assign) int startTimeFlag;
@property(nonatomic,assign) float servicePrice;
@property(nonatomic,assign) float goodPrice;

//**********晒单***************************
@property(nonatomic,strong) NSString *showID;


@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) SpUserItem *myUserItem;
@property (nonatomic,weak) id<PayDelegate> ddVC;
//全局数据库指针
@property(strong,nonatomic) UIAlertView* globalAlertView;
@property(strong,nonatomic) LKDBHelper* globalDBManager;
@property(nonatomic,strong) CLLocationManager *gps;
@property(nonatomic,strong) CLLocation *location;
@property(nonatomic,strong) KGModal *allKGModal;

-(void)dismissLoginWindow;
-(void)showLoginWindow;

-(void)refreshRightBar;

@end